<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		.user-sj-slider{
			left:50px;
			position: fixed;
			top:150px;
			position: relative;
		}
		.user-sj-slider ul{
			    position: absolute;
			    width: 100px;
			    list-style: none;
			    top: 279px;
			    left: 17px;
			    padding: 0;
		}
		.user-sj-slider ul li a{
			    width: 100%;
			    display: block;
			    height: 26px;
			    line-height: 26px;
			    margin-bottom: 1px;
			    text-indent: -10000px;
		}
	</style>
</head>
<body>
	<div class="user-sj-slider">
		<img src="slider.png" alt="">
		<ul>
			<li><a href="https://syshjsp.jd.com/view_search-627584-596900-588532-4946509-5-0-0-1-1-24.html?keyword=%25E9%25A3%259F%25E5%2593%2581%25E7%259B%2590&isGlobalSearch=1">食品盐</a></li>
			<li><a href="https://syshjsp.jd.com/view_search-627584-596900-588532-4943658-5-0-0-1-1-24.html?keyword=%25E6%25B4%2597%25E6%25B6%25A4%25E7%259B%2590&isGlobalSearch=1">洗涤盐</a></li>
			<li><a href="https://syshjsp.jd.com/view_search-627584-596900-588532-4946509-5-0-0-1-1-24.html?keyword=%25E6%2597%25A0%25E7%25A2%2598%25E7%259B%2590&isGlobalSearch=1">无碘盐</a></li>
		</ul>
	</div>
</body>
</html>
<script>
function run(a){
	var arr = [];
	var box = {};
	var Odiv = document.createElement("div");
	Odiv.innerHTML = a;
	var Ochild = Odiv.children;
	arr.push.apply(box,Ochild);
	return box;
}
console.log(run("<li>1</li>fwefwef<p>2</p>"));
alert(run("<li>1</li>fwefwef<p>2</p>")[1].innerHTML);
</script>
